cmake_minimum_required(VERSION 3.10)
project(QTradeMaster)

# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 设置 Qt
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

# 查找依赖包
find_package(Qt5 COMPONENTS Core Network REQUIRED)
find_package(redis++ REQUIRED)
find_package(hiredis REQUIRED)
find_package(spdlog REQUIRED)
find_package(nlohmann_json REQUIRED)
find_package(fmt REQUIRED)

# 添加子目录
add_subdirectory(Common)
add_subdirectory(MarketService)
add_subdirectory(Tests)